Report generated on 15-Aug-2019 at 17:30:46 by pytest-html v1.22.0
| Packages | {'pytest': '5.0.1', 'py': '1.8.0', 'pluggy': '0.12.0'} |
| Platform | Darwin-18.6.0-x86_64-i386-64bit |
| Plugins | {'html': '1.22.0', 'rerunfailures': '7.0', 'allure-pytest': '2.7.1', 'metadata': '1.8.0'} |
| Python | 3.7.4 |
1 tests ran in 6.49 seconds.
(Un)check the boxes to filter the results.
0 passed, 0 skipped, 1 failed, 1 errors, 0 expected failures, 0 unexpected passes, 1 rerun| Result | Description | Test | Duration | Links |
|---|---|---|---|---|
| No results found. Try to check the filters | ||||
| Failed | 登录:帐号或密码格式错误 | cases/test_login.py::TestLogin::test_login_format_error[-python-账号或密码不能为空] | 0.09 | |
|
self = <cases.test_login.TestLogin object at 0x103ba2850>, open_url = <pages.loginPage.LoginPage object at 0x10389a850>, user = '', pwd = 'python', expect = '账号或密码不能为空' @pytest.mark.fail @pytest.mark.parametrize('user, pwd, expect', t_data.login_format_data) def test_login_format_error(self, open_url, user, pwd, expect): """登录:帐号或密码格式错误""" login_page = open_url login_page.login(user, pwd) actual = login_page.get_phone_pwd_format_info > login_page.accept_alert() cases/test_login.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages/loginPage.py:75: in accept_alert self.accept_alert() pages/loginPage.py:75: in accept_alert self.accept_alert() E RecursionError: maximum recursion depth exceeded !!! Recursion detected (same locals & position) ------------------------------ Captured log setup ------------------------------ [32mINFO [0m common.record_log:conftest.py:75 ------------open browser------------ [32mINFO [0m common.record_log:base.py:47 加载测试地址:http://fixedserver.test.al8l.com/users/sign_in ------------------------------ Captured log call ------------------------------- [32mINFO [0m common.record_log:loginPage.py:32 开始登录 [32mINFO [0m common.record_log:loginPage.py:41 输入用户名: [32mINFO [0m common.record_log:loginPage.py:45 输入密码:python [32mINFO [0m common.record_log:loginPage.py:49 点击登录按钮 [32mINFO [0m common.record_log:loginPage.py:55 获取登录失败断言信息:账号或密码不能为空 ------------------------------ Captured log setup ------------------------------ [32mINFO [0m common.record_log:base.py:47 加载测试地址:http://fixedserver.test.al8l.com/users/sign_in ------------------------------ Captured log call ------------------------------- [32mINFO [0m common.record_log:loginPage.py:32 开始登录 [32mINFO [0m common.record_log:loginPage.py:41 输入用户名: [32mINFO [0m common.record_log:loginPage.py:45 输入密码:python [32mINFO [0m common.record_log:loginPage.py:49 点击登录按钮 [32mINFO [0m common.record_log:loginPage.py:55 获取登录失败断言信息:账号或密码不能为空 | ||||
| Rerun | 登录:帐号或密码格式错误 | cases/test_login.py::TestLogin::test_login_format_error[-python-账号或密码不能为空] | 0.16 | |
|
self = <cases.test_login.TestLogin object at 0x10330fb90>, open_url = <pages.loginPage.LoginPage object at 0x10389a850>, user = '', pwd = 'python', expect = '账号或密码不能为空' @pytest.mark.fail @pytest.mark.parametrize('user, pwd, expect', t_data.login_format_data) def test_login_format_error(self, open_url, user, pwd, expect): """登录:帐号或密码格式错误""" login_page = open_url login_page.login(user, pwd) actual = login_page.get_phone_pwd_format_info > login_page.accept_alert() cases/test_login.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pages/loginPage.py:75: in accept_alert self.accept_alert() pages/loginPage.py:75: in accept_alert self.accept_alert() E RecursionError: maximum recursion depth exceeded !!! Recursion detected (same locals & position) ------------------------------ Captured log setup ------------------------------ [32mINFO [0m common.record_log:conftest.py:75 ------------open browser------------ [32mINFO [0m common.record_log:base.py:47 加载测试地址:http://fixedserver.test.al8l.com/users/sign_in ------------------------------ Captured log call ------------------------------- [32mINFO [0m common.record_log:loginPage.py:32 开始登录 [32mINFO [0m common.record_log:loginPage.py:41 输入用户名: [32mINFO [0m common.record_log:loginPage.py:45 输入密码:python [32mINFO [0m common.record_log:loginPage.py:49 点击登录按钮 [32mINFO [0m common.record_log:loginPage.py:55 获取登录失败断言信息:账号或密码不能为空 | ||||